import request from '@/utils/request'
// 新增质量监控
export function monitorAdd(data) {
  return request({
    url: '/system/monitor',
    method: 'post',
    data: data
  })
}
// 修改质量监控
export function monitorEait(data) {
  return request({
    url: '/system/monitor',
    method: 'put',
    data: data
  })
}
// 质量监控列表
export function list(query) {
  return request({
    url: '/system/monitor/list',
    method: 'get',
    params: query
  })
}
// 质量监控详细信息
export function detailMonitor(qualityMonitorId) {
  return request({
    url: '/system/monitor/' + qualityMonitorId,
    method: 'get'
  })
}
// 删除质量监控某条数据
export function delMonitorLedger(qualityMonitorLedgerIds) {
  return request({
    url: '/system/monitor/' + qualityMonitorLedgerIds,
    method: 'delete'
  })
}
// 导出质量监控
export function monitorExport(data) {
  return request({
    url: '/system/monitor/export',
    method: 'post',
    data: data
  })
}